<?
    $qp=  _select_arr("SELECT * FROM quality_plan where id_pro='$_GET[project]'");
//    show_array($qp);
?>

<h2 class="judul">Quality Plan</h2>
<div class="content">
    <div class="data-input">
        <fieldset>
            <legend>Quality Capture Table</legend>
            <a href="index_form.php?page=quality_plan/qp-add" class="uibutton" 
               rel="add-dialog" target="ajax-modal" header="Tambah Quality Plan" 
                original-title="Tambah Quality Plan">+ Tambah</a>
            <table class="data-table" width="100%">
                <tr>
                    <th>No</th>
                    <th>Quality Attribute</th>
                    <th>Reason</th>
                    <th>Info.</th>
                    <th>Action</th>
                </tr>
                <?
                $i=1;
                foreach($qp as $data){
                    ?>
                    <tr>
                        <td><?=$i++?></td>
                        <td><?=$data['quality']?></td>
                        <td><?=$data['reason']?></td>
                        <td>ini isinya apa</td>
                        <td class="button">
                            <a href="index_form.php?page=quality_plan/qp-edit&id=<?=$data['ID_qa']?>" class="edit-btn tipsy south" 
                                rel="add-dialog" target="ajax-modal" header="Edit Quality Plan" 
                                title="Edit" original-title="Edit Quality Plan">edit</a>
                            <a href="index_form.php?page=quality_plan/qp-delete&id=<?=$data['ID_qa']?>" class="delete-btn tipsy south"
                                onClick="return confirm('Are you sure to delete this data?')" title="Delete Data">delete</a>
                        </td>
                    </tr>
                        <?
                }
                ?>
            </table>
        </fieldset>
    </div>
</div>